﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shop/MasterPage.master" AutoEventWireup="true" CodeFile="Unsalable.aspx.cs" Inherits="admin_Unsalable" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style5 {
            margin-top: 0px;
            margin-bottom: 181px;
        }
        .auto-style6 {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <strong>
    <br />
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="返厂" Width="96px" />
    <br />
    <br />
    </strong>
    <div class="auto-style6">
    <asp:GridView ID="GridView1" runat="server"   CssClass="auto-style5" DataSourceID="SqlDataSource1" Height="275px" Width="1094px" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="商品编号" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="商品编号" HeaderText="商品编号" ReadOnly="True" SortExpression="商品编号" />
            <asp:BoundField DataField="商品名称" HeaderText="商品名称" SortExpression="商品名称" />
            <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量" />
            <asp:BoundField DataField="价格" HeaderText="价格" SortExpression="价格" />
            <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:keshe2ConnectionString %>" SelectCommand="SELECT 商品.商品编号, 商品.商品名称, 商品.数量, 商品.价格, 商品类型.名称 FROM 商品 INNER JOIN 商品类型 ON 商品.商品类型 = 商品类型.编号 WHERE (商品.商品编号 NOT IN (SELECT 商品编号 FROM 订单))"></asp:SqlDataSource>
</asp:Content>

